﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for HeaderViewer
/// </summary>
public class HeaderViewer
{
    public static string InitMenu() 
    {
        string str = "<li><a href='../Pages/Default.aspx'>Trang chủ</a></li>";

        CGroupProductLevelParentFacade facade = new CGroupProductLevelParentFacade();
        IList<GroupProductLevelParent> list = facade.List(0);
        foreach (GroupProductLevelParent item in list)
        {
            str += string.Format("<li><a href='../Pages/NewProducts.aspx?pgpi={1}'>{0}</a></li>", item.Name, item.Id);
        }
        return str;
    }
}